@import "./var";
@import "./mixins";
@import "./reset";
header {
    background: #fff;
    border-bottom: 1px solid #f1f1f1;
    color: #909090;
    height: 80px;
    z-index: 250;
}

.container {
    position: relative;
    width: 1190px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    align-items: center; // justify-content: space-between;
    // background: url(../img/logo.png) 0 0 no-repeat;
}

.u_head {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 0;
    top: 15px;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    overflow: hidden;
    background: #fff;
    margin-left: 100px;
    border: 1px solid #ddd;
    img {
        width: 66%;
    }
}

.u_use_ctr {
    position: absolute;
    top: 80px;
    right: -27px;
    width: 106px;
    border: 1px solid #ddd;
    background: #fff;
    z-index: 10;
    border-radius: 5px;
    ul li {
        a {
            display: flex;
            padding: 8px 15px;
            align-items: center;
            text-decoration: none;
            color: #868181;
            &:hover {
                background: #ddd;
            }
        }
    }
}

.u_wr_c {
    .iconfont {
        padding-right: 5px;
    }
}

.u_main_box {
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    .u_main {
        background: #fff;
        width: 850px;
        min-height: 600px;
        box-sizing: border-box;
        border: 1px solid @bd;
    }
    .u_small {
        width: 300px;
        box-sizing: border-box;
    }
}

// 分页
.u_page_box {
    width: 850px;
    background: #fff;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    height: 50px;
    margin-top: 20px;
    padding: 0 20px;
    box-sizing: border-box;
    a {
        display: flex;
        align-items: center;
        justify-content: center;
        /* padding-left: 15px; */
        height: 50px;
        margin-left: 15px;
        padding: 0 10px;
        &:hover {
            background: @mc;
            color: #fff;
        }
    }
}

.u_logo {
    display: flex;
    height: 80px;
    align-items: center;
    img {
        width: 110px;
    }
}

.u_nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    li {
        a {
            color: @fc;
            display: block;
            text-decoration: none;
            height: 80px;
            line-height: 80px;
            padding: 0 40px;
            cursor: pointer;
            box-sizing: border-box;
            &:hover {
                background: #f5f5f5;
                color: @mc;
                border-bottom: 2px solid @mc;
            }
            &.active {
                color: @mc;
            }
        }
    }
}

.u_write {
    a {
        display: inline-block;
        padding: 0 10px;
        height: 35px;
        line-height: 35px;
        margin-left: 30px;
        text-align: center;
        color: #fff;
        background: @mc;
        border-radius: 5px;
        &:hover {
            background: #23a5a4;
            text-decoration: none;
        }
    }
}

.u_serach {
    position: relative;
    padding-left: 50px;
    .iconfont {
        position: absolute;
        right: 5px;
        top: 0;
        width: 30px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    input {
        width: 180px;
        height: 35px;
        outline: none;
        box-shadow: none;
        padding: 5px;
        box-sizing: border-box;
        font-size: 14px;
        color: #666;
        padding-right: 30px;
        border: 1px solid #eae4e4;
        border-radius: 3px;
    }
}

footer {
    height: 100px;
    background: #fff;
    margin-top: 20px;
    text-align: left;
    .u_footer {
        padding: 20px 0;
        a {
            color: #909090;
        }
    }
}

// index
.u_main_ul {
    >li {
        padding: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid @bd;
    }
    li:hover {
        background: #f9f9f9;
        cursor: pointer;
    }
    .u_ar_title {
        margin: 9px 0;
        a {
            font-size: 16px;
        }
    }
    .u_ar_info {
        .u_ar_read {
            color: #6c6c6c;
            text-decoration: none;
        }
        ul {
            display: inline-flex;
            white-space: nowrap;
        }
        .u_ar_li {
            display: flex;
            white-space: nowrap;
            color: #b2bac2;
            border-radius: 1px;
            border: 1px solid #edeeef;
            justify-content: center;
            height: 26px;
            a {
                display: flex;
                align-items: center;
                justify-content: center;
                height: 100%;
                padding: 0 10px;
                color: @fc;
                &:hover {
                    text-decoration: none;
                }
                .u_like_num {
                    margin-left: 5px;
                    font-weight: 700;
                }
            }
        }
        .u_edit {
            color: #1264b6;
            padding-left: 15px;
        }
    }
}

// 登录注册
.u_ad {
    display: flex;
    margin-top: 20px;
    width: 810px;
    height: 450px;
    flex: 2;
    img {
        width: 100%;
    }
}

.u_lr_box {
    display: flex;
    vertical-align: top;
    text-align: left;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #e5e5e5;
    background: #fff;
    margin-top: 20px;
    width: 300px;
    min-height: 400px;
    flex: 1;
    justify-content: center;
    form {
        margin-top: 16px;
    }
    input {
        outline: none;
        border: 1px solid #e5e5e5;
        width: 300px;
        padding: 10px 15px;
        color: @fc;
    }
    label {
        display: block;
        margin: 10px 0;
    }
    .u_goreg {
        display: block;
        margin-top: 15px;
        color: @mc;
        text-decoration: underline;
    }
}

.u_btn {
    display: inline-block;
    width: 330px;
    height: 40px;
    line-height: 35px;
    text-align: center;
    color: #fff;
    background: #21AAA9;
    border: 0 none;
    margin-top: 30px;
    &:hover {
        background: #23a5a4;
    }
}

//edit
.u_edit_box {
    text-align: left;
    .u_e_tb {
        position: relative;
        border-bottom: 1px solid #e5e5e5;
        .u_e_t {
            display: block;
            border: 0 none;
            outline: none;
            width: 100%;
            height: 65px;
            line-height: 65px;
            font-size: 20px;
            font-weight: 700;
            box-sizing: border-box;
            padding-left: 10px;
        }
        .u_e_cb {
            position: absolute;
            top: 24px;
            right: 100px;
        }
    }
    .u_c_b {
        .u_e_c {
            float: left;
            width: 50%;
            min-height: 400px;
            background: #f8f9fa;
            border: none;
            outline: none;
            box-sizing: border-box;
            padding: 20px;
            border-right: 1px solid #ddd;
            line-height: 25px;
        }
        .u_c_show {
            float: left;
            width: 50%;
            min-height: 400px;
            box-sizing: border-box;
            padding: 20px;
            background: #fff;
            overflow: scroll;
        }
    }
    .u_e_btn {
        position: absolute;
        right: 10px;
        top: 15px;
        display: inline-block;
        width: 80px;
        height: 35px;
        line-height: 35px;
        margin-left: 30px;
        text-align: center;
        color: #fff;
        background: #21AAA9;
        border-radius: 5px;
        cursor: pointer;
        outline: none;
        border: 0 none;
        &:hover {
            background: #23a5a4;
        }
    }
    .u_e_cat {
        position: absolute;
        right: 100px;
        top: 15px;
        width: 80px;
        height: 35px;
        line-height: 35px;
        outline: none;
        border: 1px solid #ddd;
        border-radius: 5px;
    }
}

.u_ar_c {
    padding: 20px;
    .u_ac_top {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        .u_ac_head {
            width: 50px;
            height: 50px;
            border-radius: 25px;
            margin-right: 10px;
            overflow: hidden;
            border: 1px solid @bd;
            display: flex;
            align-items: center;
            justify-content: center;
            img {
                width: 50%;
            }
        }
        .u_ac_ui {
            .u_ac_name {
                display: block;
                color: #000;
                font-size: 16px;
                margin-bottom: 5px;
            }
            .u_edit {
                color: #1264b6;
                padding-left: 15px;
            }
        }
    }
    ul li {
        margin-bottom: 10px;
    }
    .u_tool_tit {
        font-size: 16px;
        color: #333;
    }
    .u_tool_text {
        outline: none;
        height: 25px;
        padding: 3px 8px;
        width: 500px;
    }
    .u_tool_con {
        height: 25px;
        line-height: 25px;
        border: 1px solid #ddd;
        color: #ff502c;
        border-radius: 5px;
        padding: 0 5px;
        background: #fff5f5;
        /* color: #fff; */
        display: inline-block;
        vertical-align: middle;
    }
}

.u_ac_main {
    color: #000;
    padding: 20px;
    .u_ac_t {
        font-size: 24px;
        margin-bottom: 25px;
    }
    h2 {
        margin: 10px 0;
        font-size: 18px;
    }
    h3,
    h4 {
        margin: 10px 0;
    }
    ol,
    ul {
        li {
            margin-bottom: 9px;
            padding-left: 10px;
        }
    }
    code {
        background: #fff5f5;
        padding: 3px;
        color: #ff502c;
        border-radius: 3px;
        font-family: Menlo, Monaco, Consolas, Courier New, monospace;
    }
    a {
        color: @link;
        font-weight: 700;
        text-decoration: underline;
    }
    pre {
        margin: 15px 0;
        line-height: 1.75;
        border-radius: 3px;
        border: 1px solid #f5eded;
        code {
            padding: 18px 15px 12px;
            background: #f8f8f8;
            color: #333;
            overflow-x: auto;
            font-size: 12px;
            word-break: normal;
            display: block;
            font-family: Menlo, Monaco, Consolas, Courier New, monospace;
            white-space: pre;
        }
    }
    strong {
        color: @mc;
        text-decoration: underline;
    }
    [alt=qrcode] {
        display: block;
        width: 300px;
        margin: 15px 0;
    }
    img {
        margin: 15px 0;
        width: 100%;
    }
    .u_label {
        background: #f60;
        color: #fff;
        margin-right: 10px;
        padding: 0 5px;
        border-radius: 3px;
    }
    table{
        margin: 15px;
        td,th{
            border: 1px solid #ddd;
            padding: 6px 25px;
        }
    }
}

.u_label {
    background: #f60;
    color: #fff;
    margin-right: 10px;
    padding: 0 5px;
    border-radius: 3px;
}

.u_about {
    background: #fff;
    border: 1px solid #eae8e8;
    .u_a_t {
        padding: 15px;
        font-size: 14px;
        border-bottom: 1px solid @bd;
    }
}

.u_frontend {
    color: @mc;
}

.u_backend {
    color: #f60;
}

.u_devops {
    color: #ff2d3f;
}

.u_nodata {
    text-align: center;
    margin-top: 200px;
}

.u_c_tit {
    padding-left: 10px;
    height: 45px;
    line-height: 45px;
    border-bottom: 1px solid #e5e5e5;
}

.u_userlist {
    li>a {
        display: flex;
        align-items: center;
        padding: 15px;
        .u_user_head {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            border-radius: 25px;
            border: 1px solid #ddd;
            padding: 2px;
            box-sizing: border-box;
            margin-right: 15px;
            img {
                width: 30px;
            }
        }
        &:hover {
            text-decoration: none;
            background: #f7f7f7;
        }
    }
}

.u_fl_box {
    width: 1000px;
    margin: 15px auto;
    background: #fff;
    padding: 0 15px;
    li {
        float: left;
        width: 50%;
        box-sizing: border-box;
        margin-left: -3px;
        border-bottom: 1px solid #ddd;
        padding: 10px 0;
        .u_fl_img {
            width: 100px;
            height: 100px;
            border: 1px solid #ddd;
            padding: 5px;
            box-sizing: border-box;
            margin-right: 10px;
            overflow: hidden;
            img {
                width: 100%;
            }
        }
    }
}

.u_tit_nav {
    background: #fff;
    margin-top: 15px;
    border: 1px solid #eae8e8;
    width:300px;
    .u_a_t {
        padding: 15px;
        font-size: 14px;
        border-bottom: 1px solid #eae8e8;
    }
    .u_main_nav {
        min-height: 150px;
        padding: 15px;
        max-height: 560px;
        overflow: auto;
        a {
            display: block;
            height: 35px;
            line-height: 35px;
            color: #7d7878;
            white-space: nowrap;
            word-break: break-all;
            text-overflow: ellipsis;
            overflow: hidden;
            &:hover {
                background: #f6f6f6;
                text-decoration: none;
            }
        }
    }
}
.u_inter{
    border: 1px solid #eae8e8;
    background: #fff;
}
.u_global_tip{
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #f7f6f6;
    width: auto;
    border-bottom: 1px solid #f1eded;
    color: #307b61;
}